/* DatePattern.java
 * Author: liuex
 * 2007-12-16 ����01:49:27
 *
 * Note: 
 */
package org.lex.utils.logging.pattern;

import java.text.DateFormat;

import org.lex.utils.text.DateTimeUtilities;


public class DatePattern extends TimeBasedPattern {
	private DateFormat format = null;

	public DatePattern(String pattern) {
		super(pattern);
	}

	@Override
	public DateFormat getDateFormat() {
		if (null == format)
			format = DateTimeUtilities.getDateFormat(this.getStyle());
		return this.format;
	}
}
